<?php include '_init_.php';?>
<?php
$act = isset($_REQUEST['act'])?$_REQUEST['act']:'';
if($act == 'save')
{
	if(isset($_REQUEST['WEBSITE_CFG_BENZU_1_CK']))
	{
		Util::setGlobalValue(constant('WEBSITE_CFG_BENZU_1'),floatVal($_REQUEST['WEBSITE_CFG_BENZU_1']));
	}else{
		Util::setGlobalValue(constant('WEBSITE_CFG_BENZU_1'),'');
	}
	
	if(isset($_REQUEST['WEBSITE_CFG_BENZU_2_CK']))
	{
		Util::setGlobalValue(constant('WEBSITE_CFG_BENZU_2'),floatVal($_REQUEST['WEBSITE_CFG_BENZU_2']));
	}else{
		Util::setGlobalValue(constant('WEBSITE_CFG_BENZU_2'),'');
	}
	if(isset($_REQUEST['WEBSITE_CFG_BENZU_22_CK']))
	{
		Util::setGlobalValue(constant('WEBSITE_CFG_BENZU_22'),floatVal($_REQUEST['WEBSITE_CFG_BENZU_22']));
	}else{
		Util::setGlobalValue(constant('WEBSITE_CFG_BENZU_22'),'');
	}
	
	if(isset($_REQUEST['WEBSITE_CFG_BENZU_3_CK']))
	{
		Util::setGlobalValue(constant('WEBSITE_CFG_BENZU_3'),floatVal($_REQUEST['WEBSITE_CFG_BENZU_3']));
	}else{
		Util::setGlobalValue(constant('WEBSITE_CFG_BENZU_3'),'');
	}
	
	if(isset($_REQUEST['WEBSITE_CFG_BENZU_33_CK']))
	{
		Util::setGlobalValue(constant('WEBSITE_CFG_BENZU_33'),floatVal($_REQUEST['WEBSITE_CFG_BENZU_33']));
	}else{
		Util::setGlobalValue(constant('WEBSITE_CFG_BENZU_33'),'');
	}
	AppMain::refreshParentFrame();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/formvalidate.js"></script>
</head>

<body>
<form method="post">
<input type="hidden" name="act" value="save"/>
<div class="mainf-8">
<ul>
		<li class="maina-1b" style="width:400px;">
        <input type="checkbox" name="WEBSITE_CFG_BENZU_1_CK" <?php if(Util::getGlobalValue(constant('WEBSITE_CFG_BENZU_1')) !== ''):?> checked="checked"<?php endif;?>/>加挑一組 
      <input name="WEBSITE_CFG_BENZU_1" type="text"  class="maine-keyinp _validate_form_float" value="<?php echo Util::getGlobalValue(constant('WEBSITE_CFG_BENZU_1'));?>"/>
        元 </li>
        
        <li class="maina-1b"><input type="checkbox" name="WEBSITE_CFG_BENZU_2_CK" <?php if(Util::getGlobalValue(constant('WEBSITE_CFG_BENZU_2')) !== ''):?> checked="checked"<?php endif;?>/>
        加一服裝造型（成人）
          <input name="WEBSITE_CFG_BENZU_2" type="text"  class="maine-keyinp _validate_form_float" value="<?php echo Util::getGlobalValue(constant('WEBSITE_CFG_BENZU_2'));?>"/>元
        </li>
        <li class="maina-1b"><input type="checkbox" name="WEBSITE_CFG_BENZU_3_CK" <?php if(Util::getGlobalValue(constant('WEBSITE_CFG_BENZU_3')) !== ''):?> checked="checked"<?php endif;?>/>
        加一人（成人） <input name="WEBSITE_CFG_BENZU_3" type="text"  class="maine-keyinp _validate_form_float" value="<?php echo Util::getGlobalValue(constant('WEBSITE_CFG_BENZU_3'));?>"/>元
        </li>
        
         <li class="maina-1b"><input type="checkbox" name="WEBSITE_CFG_BENZU_22_CK" <?php if(Util::getGlobalValue(constant('WEBSITE_CFG_BENZU_22')) !== ''):?> checked="checked"<?php endif;?>/>
        加一服裝造型（小孩）
          <input name="WEBSITE_CFG_BENZU_22" type="text"  class="maine-keyinp _validate_form_float" value="<?php echo Util::getGlobalValue(constant('WEBSITE_CFG_BENZU_22'));?>"/>元
        </li>
        <li class="maina-1b"><input type="checkbox" name="WEBSITE_CFG_BENZU_33_CK" <?php if(Util::getGlobalValue(constant('WEBSITE_CFG_BENZU_33')) !== ''):?> checked="checked"<?php endif;?>/>
        加一人（小孩） <input name="WEBSITE_CFG_BENZU_33" type="text"  class="maine-keyinp _validate_form_float" value="<?php echo Util::getGlobalValue(constant('WEBSITE_CFG_BENZU_33'));?>"/>元
        </li>
  </ul>

</div>
<div class="mainf-7">
<ul>
<li class="article-1g"><input name="" type="button" class="article-1a_btn" value="儲存" onclick="this.form.submit();"/></li>
</ul>
</div>
</form>






</body>
</html>
